﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Sherwood.SignOn.Server.Models.ViewModels
{
    public class SupportViewModel
    {
        [Required(ErrorMessage="*")]
        public string Name { get; set; }

        public bool CreatedUserAccount { get; set; }

        public string Username { get; set; }

        [Required(ErrorMessage = "*"), RegularExpression("^([0-9a-zA-Z]([-.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})$", ErrorMessage="*")]
        public string Email { get; set; }

        [Required(ErrorMessage = "*")]
        public string Country { get; set; }

        [Required(ErrorMessage = "*")]
        public string Town { get; set; }

        [Required(ErrorMessage = "*")]
        public string Subject { get; set; }

        [Required(ErrorMessage = "*")]
        public string Message { get; set; }
    }
}